
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { JmtgEntity } from './entities/jmtgentity';

import { JmtgProxy } from './jmtgproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/businessdevelopmentcenter/jmgl/v1.0/tghdgl_frm',
    entityType: JmtgEntity
})
export class JmtgRepository extends BefRepository<JmtgEntity> {
    public name = 'JmtgRepository';

    public proxy: JmtgProxy;
    public paginationInfo = {
        JmtgEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(JmtgProxy, null);
    }
}